//搜索
var dbserver = require('../dao/dbserver');

//用户搜索
exports.searchUser = function(req,res){
  let {data} = req.body;
  dbserver.searchUser(data,res);
}

//判断是否为好友
exports.isFriend = function(req,res){
  let {uid,fid} = req.body;
  dbserver.isFriend(uid,fid,res);
}

//用户群
exports.searchGroup = function(req,res){
  let {data} = req.body;
  dbserver.searchGroup(data,res);
}

//判断是否在群内
exports.isInGroup = function(req,res){
  let {uid,gid} = req.body;
  dbserver.isInGroup(uid,gid,res);
}
